// index.js
Page({
  req(){
    console.log('执行请求');
    wx.request({
      url: 'https://weather110.market.alicloudapi.com/getWeather_40day?cityName=北京&cityID=101010100',
      method: 'GET',
      header: {
        Authorization: 'APPCODE f1906ef67e4a4fdb898abc436f8e5fd8'
      },
      success: (res)=>{
        console.log('请求结果');
        console.log(res);
      }
    })
  }
})
